package com.gujia.designpattern.strategy;

import com.gujia.designpattern.strategy.impl.FlyByWin;

public class RedheadDuck extends Duck{

    public RedheadDuck() {
        super.setFlyingStragety(new FlyByWin());
    }

    @Override
    public void display() {
        System.out.println("我的头是红色的");
    }
}
